
let mongoose=require('mongoose');
mongoose.Promise=Promise;
module.exports=function (done) {
	const debug=$.createDebug('init:mongodb');
	const conn=mongoose.createConnection($.config.get('db.mongodb'));
	$.mongodb=conn;
	$.model={};
	done();
}